<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link type="text/css" rel="stylesheet" href="../css/app.css"/>
    <link type="text/css" rel="stylesheet" href="../css/loginMobile.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../datepicker/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/pc/js/all.js"></script>
</head>
<body id="Ibody">
<!--
	制作：陈道祥
	页面：公司的工厂类型
	更新：九哥
-->





<!-----------公司有工厂的工厂类型页面---------->
<div class="stepTwo" id="IstepFiveFactoryType">
    <div class="identity">有公司的工厂类型选择</div>
    <span id="facTypeList"></span>
    <div class="nextStepDiv">
        <!--<span class="prevStep" id="comFacTypePre">上一步</span>-->
        <!--<span class="nextStep" id="comFacTypeNext">下一步</span>-->
        <span class="prevStep" onclick="history.go(-1)">返回</span>
        <span class="nextStep" onclick="setSave()">保存</span>
    </div>
</div>
<!-----------公司有工厂的工厂类型页面---------->





<!-----------提示信息---------->
<div id="errMsg"></div>
<!-----------提示信息---------->
</body>
<script type="text/javascript" src="../js/loginCom.js"></script>
<script>
    (function(){
        getComFacTypes();
    })();
    /**
     * 设置保存
     * */
    function setSave(){
        var userInfo = cacheGet('userInfo'); //获取用户信息
        var comInfo = cacheGet('comInfo'); //获取企业资料
        if (userInfo==null || userInfo.token=='undefined') {
            getErrMsg('没有登录！'); return;
        }
        if (comInfo=='undefined' || !comInfo.facType) {
            getErrMsg('工厂类型未设置！'); return;
        }
        cacheSet('comInfo',comInfo); //缓存企业资料
        window.location.href = '/h5/login/comList.html';
    }
</script>
</html>